package com.xbongbong.pro.businessrulelog.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2020/7/1 18:45
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class BusinessRuleLogPojo implements Serializable {
    private static final long serialVersionUID = -701090620088859934L;

    private Long id;

    private String formName;

    private String targetFormName;

    /**
     * 报错信息
     */
    private String reasonMessage;

    /**
     * 失败/成功
     */
    private String consumer;

    /**
     * 是否被消费（0：失败；1：成功）
     */
    private Integer success;
    /**
     * 执行动作（1：仅更新；2：仅添加；3：更新和插入数据；4：仅删除）
     */
    private String performAction;

    /**
     * 执行结果（1：仅更新；2：仅添加；4：仅删除）
     */
    private String executeResult;

    /**
     * 执行条数
     */
    private Integer executeNum;
    /**
     * 业务规则名称
     */
    private String businessRuleInfoName;

    private String executeTime;

    private String userName;

    public BusinessRuleLogPojo() {
    }

    public BusinessRuleLogPojo(Long id, String formName, String targetFormName, String reasonMessage, String consumer, Integer success, String performAction, String executeResult, Integer executeNum, String businessRuleInfoName, String executeTime, String userName) {
        this.id = id;
        this.formName = formName;
        this.targetFormName = targetFormName;
        this.reasonMessage = reasonMessage;
        this.consumer = consumer;
        this.success = success;
        this.performAction = performAction;
        this.executeResult = executeResult;
        this.executeNum = executeNum;
        this.businessRuleInfoName = businessRuleInfoName;
        this.executeTime = executeTime;
        this.userName = userName;
    }
}
